#ifndef EMPLOYEEQUERYFORM_H
#define EMPLOYEEQUERYFORM_H

#include <QWidget>
#include <QStandardItemModel>

namespace Ui {
class EmployeeQueryForm;
}

class EmployeeQueryForm : public QWidget
{
    Q_OBJECT

public:
    explicit EmployeeQueryForm(QWidget *parent = nullptr);
    ~EmployeeQueryForm();

private slots:

    void on_pushButton_clicked();

private:
    Ui::EmployeeQueryForm *ui;
    QStandardItemModel *m_model;    // 表格模型
    void initTable();               // 初始化表格
    void fillTable(const QJsonArray &employees);  // 填充表格数据
};

#endif // EMPLOYEEQUERYFORM_H
